/*********************************************************
 *  Copyright (c) 2011 by Web Information Systems (WIS) Group, 
 *  Delft University of Technology.
 *  Qi Gao, http://wis.ewi.tudelft.nl/index.php/home-qi-gao
 *  
 *  Some rights reserved.
 *
 *  Contact: q.gao@tudelft.nl
 *
 **********************************************************/
package org.persweb.genius.weight;

import java.util.Collection;
import java.util.Map;

import org.persweb.genius.model.Concept;
import org.persweb.genius.model.Item;

/**
 * @author Qi Gao <a href="mailto:q.gao@tudelft.nl">q.gao@tudelft.nl</a>
 * @version created on Jun 29, 2011 2:43:44 PM
 */
public interface WeightFunction {		
	
	/**
	 * @param items semantically enriched items, i.e. items where {@link EnrichedItem#getConcepts()} should not be empty
	 * @return a weighted set of concepts (= the profile)
	 */
	public Map<Concept, Double> calculateWeights(Collection<Item> items);

}
